package com.system.vote.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 站内信接收表
 * @TableName sys_off_receive
 */
@TableName(value ="sys_off_receive")
@Data
public class SysOffReceive implements Serializable {
    /**
     * 唯一主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 发送人姓名
     */
    @TableField(value = "send_out_name")
    private String sendOutName;

    /**
     * 站内信id
     */
    @TableField(value = "mail_id")
    private Long mailId;

    /**
     * 接收人id
     */
    @TableField(value = "receive_id")
    private Long receiveId;

    /**
     * 状态/0未读/1已读
     */
    @TableField(value = "state")
    private Integer state;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}